import {
  createAPI, createFileAPI
} from '@/utils/request'

// 保存部门
export const save = data => createAPI('/company/departments/save', 'post', data)
// 查询部门列表
export const list = data => createAPI('/company/departments/findAll', 'post', data)
// 根据ID查询部门（详情）
export const findById = data => createAPI(`/company/departments/findById`, 'post', data)
// 更新部门
export const update = data => createAPI(`/company/departments/update`, 'post', data)
// 删除部门
export const remove = data => createAPI(`/company/departments/delete`, 'post', data)
// 根据code查询部门
export const search = data => createAPI(`/company/departments/search`, 'post', data)
// 分页查询部门
export const page = data => createAPI(`/company/departments/page`, 'post', data)
